﻿using Microsoft.AspNetCore.Http;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ekton_Manage_DTO.CommonModels
{
    public class DtoFileModel
    {
        public class FileDataBase64
        {
            public string fileByBase64 { get; set; }
            public string suffix { get; set; }
        }

        public class FormData
        {
            public List<FileDataBase64> files { get; set; } = new List<FileDataBase64>();
        }

        public class ExportFormData
        {
            public List<int> list { get; set; }
        }

        public class SendEmailReqest
        {
            /// <summary>
            /// 要发送的人邮箱
            /// </summary>
            [Display(Name = "邮箱")]
            [Required(ErrorMessage = "{0}是必传项")]
            public string email { get; set; }
            /// <summary>
            /// 平台id
            /// </summary>
            [Display(Name = "平台id")]
            [Required(ErrorMessage = "{0}是必传项")]
            public int platformId { get; set; }
        }

        public class EmailByQueue
        {
            /// <summary>
            /// 邮件标题
            /// </summary>
            public string subject { get; set; }
            /// <summary>
            /// 内容
            /// </summary>
            public string body { get; set; }
            /// <summary>
            /// 收件人邮箱地址
            /// </summary>
            public string address { get; set; }
    }
    }
}
